import { defineAsyncComponent } from "vue";

export default {
  install(app: Record<string, any>) {
    // 批量注册全局组件
    app.component(
      "CrudTable",
      defineAsyncComponent(() => import("@/components/Table/CrudTable/index.vue"))
    );
    app.component(
      "SelectTable",
      defineAsyncComponent(() => import("@/components/Table/SelectTable/index.vue"))
    );
    app.component(
      "FormTable",
      defineAsyncComponent(() => import("@/components/Table/FormTable/index.vue"))
    );
  }
};
